package model.types;


/**
 * Integer
 * Objects of this class represent an Integer. 
 * Int is a subset of Rat having denominator = 1;
 * 
 * @author Marius Tempelmeier
 *
 */
public class Int extends Rat {

	public Int(int numerator) throws NumberFormatException {
		super(numerator, 1);
	}

	
	/**
	 * Returns the string representation of this. 
	 * @return string representation
	 */
	@Override
	public String toString() {
		return this.getNumerator() + "";
	}
	
	
}
